<%= input_values_fields.fields_for input.id.to_s, composer.input_value_for(input) do |input_fields| %>
  <% if input.options.present? %>
    <%= selectable_f input_fields, :value, input.options_array, { :include_blank => !input.required }, :label_help => input.description, :require => input.required, :label => input.name, :id => input.name, :onchange => local_assigns[:onchange] %>
  <% else %>
    <% if input.value_type == 'plain' || input.value_type.nil? %>
      <%= textarea_f input_fields, :value,
        :label => input.name,
        :label_help => input.description,
        :required => input.required,
        :rows => 2,
        :onchange => local_assigns[:onchange],
        :id => input.name,
        :class => input.hidden_value? ? 'masked-input' : '' %>
    <% else %>
      <%= mount_report_template_input(input_fields.object) %>
    <% end %>
  <% end %>
<% end %>
